/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment.Qusetion1.employee;

import za.ac.cput.assignment.Qusetion1.payable.Payable;

/**
 *
 * @author Andisiwe
 */
public abstract class Employee implements Payable
{ 
   private String firstName;
   private String lastName;
   private String socialSecurityNumber;

   public Employee(String first, String last, String ssn)
   {
       firstName = first;
       lastName = last;
       socialSecurityNumber = ssn;
               
   }
    /**
     * @return the firstName
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * @param firstName the firstName to set
     */
    public void setFirstName(String first) 
    {
        this.firstName = first;
    }

    /**
     * @return the lastName
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * @param lastName the lastName to set
     */
    public void setLastName(String last)
    {
        this.lastName = last;
    }

    /**
     * @return the socialSecurityNumber
     */
    public String getSocialSecurityNumber()
    {
        return socialSecurityNumber;
    }

    /**
     * @param socialSecurityNumber the socialSecurityNumber to set
     */
    public void setSocialSecurityNumber(String ssn) {
        this.socialSecurityNumber = ssn;
    }
    @Override
    public String toString()
    {
        return String.format("%S %S\nsocial security number: %S",
                getFirstName(),getLastName(),getSocialSecurityNumber());
    }
    
}
